<?php

define('PATH_ROOT', dirname(dirname(__FILE__)).'/');
if ($_SERVER["SERVER_NAME"] == '192.168.1.29') {
	define('URL_ROOT', 'http://192.168.1.29/hall88/');
}
elseif($_SERVER["SERVER_NAME"] == '127.0.0.1') {
	define('URL_ROOT', 'http://127.0.0.1/stockage/work/hall88/2012/web/hfram/');
}
else {
	define('URL_ROOT', 'http://hall88.no-ip.org/hall88/');
}
define('PATH_LIBS', 'libs/');
define('URL_LIBS', URL_ROOT.'libs/');
define('PATH_MODELS', 'models/');
define('PATH_VIEWS', 'views/');
define('PATH_CONTROLLERS', 'controllers/');
define('URL_CONTROLLERS', URL_ROOT.'controllers/');
define('PATH_DATAS', 'datas/');
define('PATH_DATAS_NEWS', 'datas/news/');
define('URL_DATAS_NEWS', URL_ROOT.'datas/news/');
define('PATH_DATAS_ABILITIES', 'datas/abilities/');
define('URL_DATAS_ABILITIES', URL_ROOT.'datas/abilities/');
define('PATH_DATAS_PRODUCTS', 'datas/products/');
define('URL_DATAS_PRODUCTS', URL_ROOT.'datas/products/');
define('PATH_DATAS_PRODUCTSADDS', 'datas/products/adds/');
define('URL_DATAS_PRODUCTSADDS', URL_ROOT.'datas/products/adds/');
define('URL_DATAS', URL_ROOT.'datas/');
define('URL_VIEWS', URL_ROOT.'views/');
define('DB_HOST','localhost');
define('DB_NAME','hall88');
define('DB_DSN','mysql:host='.DB_HOST.';dbname='.DB_NAME);
define('DB_LOGIN','root');
define('DB_PASSWORD','obama88');
define('TPL_NAME', 'default');
define('PATH_TPL', PATH_VIEWS.TPL_NAME.'/');
define('URL_TPL', URL_ROOT.'views/'.TPL_NAME.'/');

require('upload.php');

?>